package com.k.demo.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.k.demo.entity.Food;
import com.k.demo.entity.Notice;

public interface NoticeService {

	List<Notice> getAll();
	
	Notice showNotice();
	
	//单个删除功能
	boolean deleteById(int id);
	
	//批量删除
	boolean deleteByGroup(List<Integer> list);
	
	//公告撤销
	int revokeNotice(int notice_id);
	
	//公告增加
	Notice addNotice(Notice notice);
	
	//改为在首页显示
	int modifyState(int notice_id);
	
	//修改所有状态为0
	int modifyAllStatus();
	
	//status全部设置为0
	
	//公告分页显示接口
	PageInfo<Notice> getpage(int pageNum,int pageSize);
	
	//公告修改
	Notice modifyNotice(Notice notice);
	
	//公告内容模糊查找
	PageInfo<Notice> getpagebyname(int pageNum,int pageSize,String notice_content);
	
	//公告时间区间查找
	PageInfo<Notice> getpagebytime(int pageNum,int pageSize,String time1,String time2);
	

}
